package stage
{
	import mx.controls.TextArea;
	import mx.formatters.DateFormatter;
	
	public class InforBox extends TextArea
	{
		private var formater:DateFormatter=new DateFormatter();
		
		public function InforBox()
		{
			this.width=200;
			this.height=40;
			this.editable=false;
			this.setStyle("backgroundColor",0xcccccc);
			formater.formatString="JJ:NN:SS";
		}
		
		public function addLine(msg:String):void
		{
			
			this.text+=formater.format(new Date())+": "+msg+"\r\n";
		}

	}
}